﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CqusInfo.RAL.User;
using CqusInfo.DAL.User;
using CqusInfo.DAL.User.Interface;

namespace CqusInfo.BLL.User
{
    public class UserBLL:Inteface.IUserBLL
    {
        private static readonly IUserDAL userDal = new UserDAL();

        public Int32 GetCounts(bool isDel)
        {
            return userDal.GetCounts(isDel);
        }
        public Int32 Add(UserModel model)
        {
            return userDal.Add(model);
        }

        public List<UserModel> Query(Int32 page, Int32 takeItem, bool isDel)
        {
            return userDal.Query(page, takeItem, isDel);
        }

        public Int32 Delete(string userName, bool isDel, bool trueDel)
        {
            return userDal.Delete(userName, isDel, trueDel);
        }

        public Int32 Update_Password(string userName, string passWord)
        {
            return userDal.Update_Password(userName, passWord);
        }
    }
}
